import request from '@/utils/request'

// 查询责令整改列表
export function listcompulsoryrectify(query) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/list',
    method: 'get',
    params: query,
  })
}

// 查询责令整改详细
export function getcompulsoryrectify(id) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/' + id,
    method: 'get',
  })
}

// 新增责令整改
export function addcompulsoryrectify(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify',
    method: 'post',
    data: data,
  })
}

// 修改责令整改
export function updatecompulsoryrectify(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify',
    method: 'put',
    data: data,
  })
}

// 删除责令整改
export function delcompulsoryrectify(id) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/' + id,
    method: 'delete',
  })
}

// 预览
export function previewcompulsoryrectify(params) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/preview',
    method: 'get',
    params,
  })
}

// 详情页预览
export function previewPdf(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/pdfPreview',
    method: 'post',
    data,
  })
}

// 保存附件
export function addcompulsoryrectifyFiles(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/addFiles',
    method: 'post',
    data,
  })
}

// 导出
export function exportcompulsoryrectify(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/export',
    method: 'post',
    data,
    responseType: 'blob',
  })
}

// 导出送达回证
export function exportreceipEexport(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/receipEexport',
    method: 'post',
    data,
    responseType: 'blob',
  })
}

// 立案号下拉
export function getCaseList() {
  return request({
    url: '/ruoyi-system/compulsoryrectify/caseList',
    method: 'get',
  })
}

// 获取处罚决定书填的内容呢
export function getContent(id) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/getContent?caseId=' + id,
    method: 'get',
  })
}

// 提交流程接口
export function submitcompulsoryrectify(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/submit',
    method: 'post',
    data,
  })
}

// 审核接口
export function reviewcompulsoryrectify(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/review',
    method: 'post',
    data,
  })
}

// 转办接口
export function transfercompulsoryrectify(data) {
  return request({
    url: '/ruoyi-system/compulsoryrectify/transferTask',
    method: 'post',
    data,
  })
}
